package com.jming.yygh.hosp.client;

import com.jming.yygh.vo.hosp.ScheduleOrderVo;
import com.jming.yygh.vo.order.SignInfoVo;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author jming
 * @version 0.0.1
 * @date 2021/05/14
 */
@Repository
@FeignClient(value = "service-hosp")
public interface HospitalFeignClient {

    /**
     * 根据排班id获取预约下单数据
     * @param scheduleId
     * @return ScheduleQueryVo
     */
    @ApiOperation(value = "根据排班id获取预约下单数据")
    @GetMapping("/admin/hosp/hospital/inner/getscheduleOrderVo/{scheduleId}")
    ScheduleOrderVo getscheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    /**
     * 获取医院签名信息
     * @param hoscode
     * @return SignInfoVo
     */
    @ApiOperation(value = "获取医院签名信息")
    @GetMapping("/api/hosp/hospital/inner/getSignInfoVo/{hoscode}")
    SignInfoVo getSignInfoVo(
            @ApiParam(name = "hoscode", value = "医院code", required = true)
            @PathVariable("hoscode") String hoscode);
}
